<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>Administration</title>		
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        #{get 'moreStyles' /}	
        <link rel="stylesheet" type="text/css" media="screen" 
                href="@{'/public/stylesheets/main.css'}" />
        <link rel="shortcut icon" type="image/png" 
                href="@{'/public/images/favicon.png'}" />
        
    </head>
    <body id="admin">
        
        <div id="header">
            <div id="logo">
                TourApp. <span>  administration</span>
            </div>
            <ul id="tools">
                <li>
                    <a href="@{Secure.logout()}">Déconnexion</a>
                </li>
            </ul>
        </div>
        
        <div id="main">
		    <ul id="adminMenu">
		        <li class="${request.controller == 'Admin' ? 'selected' : ''}">
		            <a href="@{Admin.index()}">Accueil</a>
		        </li>
		        #{secure.check 'admin'}
		            <li class="${request.controller == 'Cities' ? 'selected' : ''}">
		                <a href="@{Cities.list()}">Ville</a>
		            </li>
		            <li class="${request.controller == 'Types' ? 'selected' : ''}">
		                <a href="@{Types.list()}">Types</a>
		            </li>
		            <li class="${request.controller == 'TouristicItems' ? 'selected' : ''}">
		                <a href="@{TouristicItems.list()}">Items touristiques</a>
		            </li>
		            <li class="${request.controller == 'Users' ? 'selected' : ''}">
		                <a href="@{Users.list()}">Utilisateurs</a>
		            </li>
		            <li class="${request.controller == 'Coordns' ? 'selected' : ''}">
		                <a href="@{Coordns.list()}">Coordonnées</a>
		            </li>
		            <li class="${request.controller == 'Messages' ? 'selected' : ''}">
		                <a href="@{Messages.list()}">Messages</a>
		            </li>
		            <li class="${request.controller == 'TakeMeTours' ? 'selected' : ''}">
		                <a href="@{TakeMeTours.list()}">TMT</a>
		            </li>
		            <li class="${request.controller == 'FeedBacks' ? 'selected' : ''}">
		                <a href="@{FeedBacks.list()}">FeedBack</a>
		            </li>
		        #{/secure.check}
		    </ul>
		    #{doLayout /} 
		</div>
        
        <p id="footer">
            L'adminstration centrale de l'application TouApp
        </p>
        
    </body>
</html>